home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 July & August / PCWorld_2006-07-08_cd.bin / v cisle / acehtml / acehtmlfreeware.exe / scriptdef / User Plugins.sd < prev    next >
INI File  |  2004-06-28  |  2KB  |  69 lines

  1. [SUBJECT]
  2. Description=Display a table with all the plugins installed on the visitor's computer
  3. ImageIndex=-1
  4. Folder=Tools
  5.  
  6. [BODY_TEXT]
  7. ;<div align="center">
  8. ;<script language="JavaScript">
  9. ;<!-- Begin
  10. ;numPlugins = navigator.plugins.length;
  11. ;if (numPlugins > 0)
  12. ;document.writeln("<b><font size=+3>Installed plug-ins</font></b><br>");
  13. ;else
  14. ;document.writeln("<b><font size=+2>No plug-ins ");
  15. ;document.writeln("are installed.</font></b><br>");
  16. ;document.writeln("<hr>");
  17. ;for (i = 0; i < numPlugins; i++) {
  18. ;plugin = navigator.plugins[i];
  19. ;document.write("<center><font size=+1><b>");
  20. ;document.write(plugin.name);
  21. ;document.writeln("</b></font></center><br>");
  22. ;document.writeln("<dl>");
  23. ;document.writeln("<dd>File name:");
  24. ;document.write(plugin.filename);
  25. ;document.write("<dd><br>");
  26. ;document.write(plugin.description);
  27. ;document.writeln("</dl>");
  28. ;document.writeln("<p>");
  29. ;document.writeln("<table width=100% border=2 cellpadding=5>");
  30. ;document.writeln("<tr>");
  31. ;document.writeln("<th width=20%><font size=-1>Mime Type</font></th>");
  32. ;document.writeln("<th width=50%><font size=-1>Description</font></th>");
  33. ;document.writeln("<th width=20%><font size=-1>Suffixes</font></th>");
  34. ;document.writeln("<th><font size=-1>Enabled</th>");
  35. ;document.writeln("</tr>");
  36. ;numTypes = plugin.length;
  37. ;for (j = 0; j < numTypes; j++) {
  38. ;mimetype = plugin[j];
  39. ;if (mimetype) {
  40. ;enabled = "No";
  41. ;enabledPlugin = mimetype.enabledPlugin;
  42. ;if (enabledPlugin && (enabledPlugin.name == plugin.name))
  43. ;enabled = "Yes";
  44. ;document.writeln("<tr align=center>");
  45. ;document.writeln("<td>");
  46. ;document.write(mimetype.type);
  47. ;document.writeln("</td>");
  48. ;document.writeln("<td>");
  49. ;document.write(mimetype.description);
  50. ;document.writeln("</td>");
  51. ;document.writeln("<td>");
  52. ;document.write(mimetype.suffixes);
  53. ;document.writeln("</td>");
  54. ;document.writeln("<td>");
  55. ;document.writeln(enabled);
  56. ;document.writeln("</td>");
  57. ;document.writeln("</tr>");
  58. ;   }
  59. ;}
  60. ;document.write("</table>");
  61. ;document.write("<p><hr><p>");
  62. ;}
  63. ;// End -->
  64. ;</script>
  65. ;</div>
  66. ;
  67.  
  68.  
  69.